{% extends "myghtyboard/base.html" %}
{% load i18n %}
{% load fbc %}

{% block extra-title %}{% trans "Forum Index" %} :: Edycja wpisu w "{{ topic.name }}"{% endblock %}

{% block your-position %}
	<a href="/forum/">{% trans "Forum Index" %}</a>
	<span class="color-orange">»</span>
	<a href='/forum/forum/{{topic.forum.id}}/'>{{ topic.forum.name }}</a>
	<span class="color-orange">»</span>
	<a href="/forum/topic/1/{{ topic.id }}">{{ topic.name }}</a>
	<span class="color-orange">»</span>
	Pisz odpowiedź
{% endblock %}



{% block content %}
					<div>
                            <div class="box-shadow">
                                <div class="box">
                                    <div class="box-header">
                                        <span class="box-header-title">
                                            <img class="box-header-pointer" alt="pointer" src="/site_media/css/gfx/icons/point-transparent.png" />
                                            <span>Zmień wpis do tematu <q>{{ topic.name }}</q></span>
                                        </span>
                                    </div>
                                    <div class="box-content">
                                        <form method="post" action="/forum/edit_post/{{ post_id }}/" enctype="">
                                            <fieldset>
                                                <textarea class="height-260" name="text">{% if text %}{{ text }}{% else %}{{ quote_text }}{% endif %}</textarea>
                                                {% if form.text.errors %}<br />*** {{ form.text.errors|join:", " }}{% endif %}<br/>
                                                <strong>{% trans "Available Tags" %}</strong>: [b], [u], [i], [code]. [url], [img], [quote].
                                                    <p class="right">
                                                        <span class="button-border">
                                                            <input type="submit" name="save" value="{% trans "Edit post" %}" />
                                                        </span>
                                                    </p>
                                            </fieldset>

                                        </form>
                                    </div>
                                </div>
                            </div>
</div>
{% endblock %}